package com.oracle.service.impl;



import com.oracle.dao.SysRoleDao;
import com.oracle.pojo.SysRole;
import com.oracle.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("roleService")
public class RoleServiceImpl implements RoleService {

	@Autowired
	private SysRoleDao roleDao;

	@Override
	public List<SysRole> findRolesByUserId(Integer id) {
		return roleDao.findRolesByUserId(id);
	}

}
